
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiaoshiguanli"></use>
                    </svg>
                    <div class="name">教师管理</div>
                    <div class="fontclass">#icon-jiaoshiguanli</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-renyuanguanli"></use>
                    </svg>
                    <div class="name">人员管理</div>
                    <div class="fontclass">#icon-renyuanguanli</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-27"></use>
                    </svg>
                    <div class="name">用户</div>
                    <div class="fontclass">#icon-27</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yonghu"></use>
                    </svg>
                    <div class="name">用户</div>
                    <div class="fontclass">#icon-yonghu</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iconfontjinzhi"></use>
                    </svg>
                    <div class="name">禁止</div>
                    <div class="fontclass">#icon-iconfontjinzhi</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-weibiaoti102"></use>
                    </svg>
                    <div class="name">下载</div>
                    <div class="fontclass">#icon-weibiaoti102</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xitongcanshu"></use>
                    </svg>
                    <div class="name">系统参数</div>
                    <div class="fontclass">#icon-xitongcanshu</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhongzhi"></use>
                    </svg>
                    <div class="name">重置</div>
                    <div class="fontclass">#icon-zhongzhi</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shoushidianji0-copy"></use>
                    </svg>
                    <div class="name">手势-点击-0</div>
                    <div class="fontclass">#icon-shoushidianji0-copy</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-naozhong1"></use>
                    </svg>
                    <div class="name">闹钟1</div>
                    <div class="fontclass">#icon-naozhong1</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jianhao"></use>
                    </svg>
                    <div class="name">减号</div>
                    <div class="fontclass">#icon-jianhao</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yingyong"></use>
                    </svg>
                    <div class="name">应用</div>
                    <div class="fontclass">#icon-yingyong</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-guanlian"></use>
                    </svg>
                    <div class="name">关联</div>
                    <div class="fontclass">#icon-guanlian</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jichushuju"></use>
                    </svg>
                    <div class="name">基础数据</div>
                    <div class="fontclass">#icon-jichushuju</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-guanxi"></use>
                    </svg>
                    <div class="name">关系</div>
                    <div class="fontclass">#icon-guanxi</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-remind"></use>
                    </svg>
                    <div class="name">提示</div>
                    <div class="fontclass">#icon-remind</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiahao"></use>
                    </svg>
                    <div class="name">加号</div>
                    <div class="fontclass">#icon-jiahao</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiantou"></use>
                    </svg>
                    <div class="name">箭头-右</div>
                    <div class="fontclass">#icon-jiantou</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fanhui"></use>
                    </svg>
                    <div class="name">返回</div>
                    <div class="fontclass">#icon-fanhui</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-apps-o"></use>
                    </svg>
                    <div class="name">应用</div>
                    <div class="fontclass">#icon-apps-o</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fenbanguanli"></use>
                    </svg>
                    <div class="name">分班管理</div>
                    <div class="fontclass">#icon-fenbanguanli</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shouquan"></use>
                    </svg>
                    <div class="name">授权</div>
                    <div class="fontclass">#icon-shouquan</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-banji"></use>
                    </svg>
                    <div class="name">班级</div>
                    <div class="fontclass">#icon-banji</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xuanke"></use>
                    </svg>
                    <div class="name">选课</div>
                    <div class="fontclass">#icon-xuanke</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-bianji"></use>
                    </svg>
                    <div class="name">编辑</div>
                    <div class="fontclass">#icon-bianji</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-canshu"></use>
                    </svg>
                    <div class="name">参数</div>
                    <div class="fontclass">#icon-canshu</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xuexiaoguanli"></use>
                    </svg>
                    <div class="name">学校管理</div>
                    <div class="fontclass">#icon-xuexiaoguanli</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xueshimao"></use>
                    </svg>
                    <div class="name">学士帽</div>
                    <div class="fontclass">#icon-xueshimao</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-qidong"></use>
                    </svg>
                    <div class="name">启动</div>
                    <div class="fontclass">#icon-qidong</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tongyong"></use>
                    </svg>
                    <div class="name">通用</div>
                    <div class="fontclass">#icon-tongyong</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-daoru"></use>
                    </svg>
                    <div class="name">导入</div>
                    <div class="fontclass">#icon-daoru</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shuaxin"></use>
                    </svg>
                    <div class="name">刷新</div>
                    <div class="fontclass">#icon-shuaxin</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-kecheng"></use>
                    </svg>
                    <div class="name">课程管理</div>
                    <div class="fontclass">#icon-kecheng</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xueshimao1"></use>
                    </svg>
                    <div class="name">学士帽</div>
                    <div class="fontclass">#icon-xueshimao1</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-daima"></use>
                    </svg>
                    <div class="name">代码</div>
                    <div class="fontclass">#icon-daima</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-banjixueqing"></use>
                    </svg>
                    <div class="name">班级学情</div>
                    <div class="fontclass">#icon-banjixueqing</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-lianxiren"></use>
                    </svg>
                    <div class="name">联系人</div>
                    <div class="fontclass">#icon-lianxiren</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-naozhong"></use>
                    </svg>
                    <div class="name">闹钟</div>
                    <div class="fontclass">#icon-naozhong</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-peizhi"></use>
                    </svg>
                    <div class="name">配置</div>
                    <div class="fontclass">#icon-peizhi</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hangdongrizhi"></use>
                    </svg>
                    <div class="name">日志</div>
                    <div class="fontclass">#icon-hangdongrizhi</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuhe"></use>
                    </svg>
                    <div class="name">组合</div>
                    <div class="fontclass">#icon-zuhe</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jigou"></use>
                    </svg>
                    <div class="name">机构</div>
                    <div class="fontclass">#icon-jigou</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xuexiao"></use>
                    </svg>
                    <div class="name">教室管理</div>
                    <div class="fontclass">#icon-xuexiao</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yichu"></use>
                    </svg>
                    <div class="name">移除</div>
                    <div class="fontclass">#icon-yichu</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-icon-test"></use>
                    </svg>
                    <div class="name">选中</div>
                    <div class="fontclass">#icon-icon-test</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiaoshiweihu"></use>
                    </svg>
                    <div class="name">教室维护</div>
                    <div class="fontclass">#icon-jiaoshiweihu</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiachang"></use>
                    </svg>
                    <div class="name">家长</div>
                    <div class="fontclass">#icon-jiachang</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-excel"></use>
                    </svg>
                    <div class="name">excel</div>
                    <div class="fontclass">#icon-excel</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zudui"></use>
                    </svg>
                    <div class="name">组队</div>
                    <div class="fontclass">#icon-zudui</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuzhi"></use>
                    </svg>
                    <div class="name">组织</div>
                    <div class="fontclass">#icon-zuzhi</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fenban"></use>
                    </svg>
                    <div class="name">分班</div>
                    <div class="fontclass">#icon-fenban</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-rili"></use>
                    </svg>
                    <div class="name">校历</div>
                    <div class="fontclass">#icon-rili</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xuesheng1"></use>
                    </svg>
                    <div class="name">学生</div>
                    <div class="fontclass">#icon-xuesheng1</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-qiyong"></use>
                    </svg>
                    <div class="name">启用</div>
                    <div class="fontclass">#icon-qiyong</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xuesheng"></use>
                    </svg>
                    <div class="name">学生</div>
                    <div class="fontclass">#icon-xuesheng</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-nianji"></use>
                    </svg>
                    <div class="name">年级</div>
                    <div class="fontclass">#icon-nianji</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-icon-expert"></use>
                    </svg>
                    <div class="name">扩展</div>
                    <div class="fontclass">#icon-icon-expert</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiaose"></use>
                    </svg>
                    <div class="name">角色</div>
                    <div class="fontclass">#icon-jiaose</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shanchu"></use>
                    </svg>
                    <div class="name">删 除</div>
                    <div class="fontclass">#icon-shanchu</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xueqixuenianguanli"></use>
                    </svg>
                    <div class="name">学期学年管理</div>
                    <div class="fontclass">#icon-xueqixuenianguanli</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xitonggongneng"></use>
                    </svg>
                    <div class="name">系统功能</div>
                    <div class="fontclass">#icon-xitonggongneng</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yonghu-copy"></use>
                    </svg>
                    <div class="name">用户</div>
                    <div class="fontclass">#icon-yonghu-copy</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fanhui-copy"></use>
                    </svg>
                    <div class="name">返回</div>
                    <div class="fontclass">#icon-fanhui-copy</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-nianji1"></use>
                    </svg>
                    <div class="name">年级</div>
                    <div class="fontclass">#icon-nianji1</div>
                </li>

                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuhe-copy"></use>
                    </svg>
                    <div class="name">组合</div>
                    <div class="fontclass">#icon-zuhe-copy</div>
                </li>

        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
